package io.renren.modules.sys.controller;

import io.renren.common.utils.ConvertUtils;
import io.renren.common.utils.Result;
import io.renren.modules.security.user.SecurityUser;
import io.renren.modules.sys.dao.SysCommDao;
import io.renren.modules.sys.dto.SysRegionDTO;
import io.renren.modules.sys.dto.SysUserDTO;
import io.renren.modules.sys.service.SysUserPostService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/test2")
@Api(tags="用户管理")
public class TestController {
    @Autowired
    private SysCommDao sysCommDao;

    @GetMapping("list")
    public Result<List<Map>> info(){
        String sql ="select id, dict_type from sys_dict_type order by dict_type, sort ";
       List list
         = sysCommDao.commList(sql,new HashMap<>());
        return new Result<List<Map>>().ok(list);
    }
}
